#include "SpaceShooterClient.h"

// define the program entry point


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd)
{
	//create the application
	SpaceShooterClient game(hInstance, "SpaceShooter by Chris Dickinson and Joe Lang", D3DDEVTYPE_HAL, D3DCREATE_HARDWARE_VERTEXPROCESSING);

	// set the global variable to the address of this game, so we can access it everywhere
	gD3DApplication = &game;

	gGame = &game;

	// create DirectInput object
	DirectInput di(DISCL_NONEXCLUSIVE|DISCL_FOREGROUND, DISCL_NONEXCLUSIVE|DISCL_FOREGROUND);
	gameInput = &di;

	// begin the main message loop in here and keep going until it returns a value
	// this will be the return value of the entire program
	return gD3DApplication->Run();
}

